package net.runman.core.model;

import java.io.Serializable;
import java.util.Date;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 *
 * 
 *
 */
@TableName("t_oauth")
public class Oauth implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 第三方的唯一id */
	@TableId(value = "open_id")
	private String openId;

	/** 类型 */
	private String type;

	/** 关联的用户id */
	@TableField(value = "user_id")
	private Integer userId;

	/** 生成时间 */
	private Date created;

	/** 第三方昵称 */
	private String nickname;

	/** 第三方头像 */
	private String avatar;


	public String getOpenId() {
		return this.openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Date getCreated() {
		return this.created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAvatar() {
		return this.avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

}
